var util = require('../../utils/util.js')
var app = getApp()
const domainUrl = app.globalData.domainUrl

Page({
  data: {

  },
  onLoad: function (options) {
    util.login(this.route);
    var that = this
    var openid = wx.getStorageSync('my_openid');
    wx.request({
      url: domainUrl + 'yearReport?openId=' + openid,
      success: function (res) {
        console.log(res);
        that.setData(res.data)
      }
    })
  },

  onShareAppMessage: function () {

  }
})